<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>修改会员价格</title>
<meta name="viewport"
	content="width=device-width,initial-scale=1,maximum-scale=1.0" />
<#include "/view/admin/head.html"/>
<link rel="stylesheet" type="text/css"
	href="${base}/jstool/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" />
<link rel="stylesheet" type="text/css"
	href="${base}/jstool/bootstrap-switch/css/bootstrap3/bootstrap-switch.min.css" />
<link rel="stylesheet" type="text/css"
	href="${base}//jstool/bootstrap-fileinput/css/fileinput.min.css" />
<script type="text/javascript"
	src="${base}/jstool/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript"
	src="${base}/jstool/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript"
	src="${base}/jstool/bootstrap-switch/js/bootstrap-switch.min.js"></script>
<script type="text/javascript"
	src="${base}/jstool/bootstrap-fileinput/js/fileinput.min.js"></script>
<script type="text/javascript"
	src="${base}/jstool/bootstrap-fileinput/js/locals/zh.js"></script>
<link rel="stylesheet" type="text/css"
	href="${base}/jstool/silviomoreto-bootstrap-select20151109/dist/css/bootstrap-select.css.map" />
<link rel="stylesheet" type="text/css"
		href="${base}/jstool/silviomoreto-bootstrap-select20151109/dist/css/bootstrap-select.min.css"/>
         <script type="
	text/javascript" src="${base}/jstool/silviomoreto-bootstrap-select20151109/dist/js/bootstrap-select.min.js">
</script>
<script type="text/javascript"
	src="${base}/jstool/silviomoreto-bootstrap-select20151109/dist/js/bootstrap-select.js.map"></script>
<script type="text/javascript"
	src="${base}/jstool/silviomoreto-bootstrap-select20151109/dist/js/i18n/defaults-zh_CN.min.js"></script>
<style type="text/css">
  .list-path {
            height: 50px;
            line-height: 50px;
            background-color: #9acfea;
        }

        .table-class {
            width: 90%;
            text-align: center;
            border: 1px solid #afd9ee;
            margin: 0 auto;
            margin-top: 50px;
        }

        table th {
            width: 20%;
            background-color: #d9edf7;
            text-align: right;
        }

        table td {
            width: 20%;
            text-align: left;
        }
</style>


</head>
<body>

	<#include "/view/admin/listnav.html"/> 
	

<div class="table-class">
    <#include "/view/admin/opermsg.html"/>
			<form class="form-horizontal" role="form"  name="form1" action="${base}/sorting/doUpdateHyjg" method="post"  style="margin-top: 20px">
		<table class="table table-bordered">
				<fieldset>
					<div class="form-group">
						<label class="col-sm-2 control-label" for="ds_host">会员名称</label>
						<div class="col-sm-4">
						<input type="hidden" name="dataresourceId" value="${czjdataresource.dataresourceId!}"/>
							<input class="form-control" id="ds_host" type="text"
								name="festTheme" value=" ${czjdataresource.title!}"  readonly="readonly"/>
						</div>
						<label class="col-sm-2 control-label" for="ds_host">价格(元/月)</label>
						<div class="col-sm-4">
							<input class="form-control" id="ds_host" type="text"
								name="value" value="${czjdataresource.value!}"   onkeyup="clearNoNum(this)"/>
						</div>
					</div>
				
					
					<div class="form-group" style="text-align: center;">
						<label class="col-sm-12 " for="ds_username">
							<button class="btn btn-success "  onclick="doSubmit()" type="button">提交</button>
					   <span style="width: 20px;">&nbsp;</span>
							<button class="btn btn-danger "  onclick="doBack()"  type="button">返回</button>
						</label>
					</div>
		</div>
		</fieldset>


</table>
		</form>


<script type="text/javascript">
	
			function doSubmit(){
				
				var value=$("input[name='value']").val();
				if(value==""){
					alert("金额不能为空！"); 
					  return false; 
				}
				
	
				 document.form1.submit();
				  
			}
			
			function clearNoNum(obj)  
			{  
			   obj.value = obj.value.replace(/[^\d.]/g,"");  //清除“数字”和“.”以外的字符  
			   obj.value = obj.value.replace(/^\./g,"");  //验证第一个字符是数字而不是.  
			  obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个. 清除多余的  
			  obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");  
			  obj.value=obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3');//只能输入两个小数  
			}  
			
			function doBack(){
				history.back();
			}

</script>

	</div>
</body>
</html>
